package cn.imnaer.service.rest.userinfo;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

@Path(value = "/user")
public interface UserComponentRestApi {
    @POST
    @Produces("application/json;charset=UTF-8")
    @Path(value = "/login")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String login(String userInfo);
    @POST
    @Produces("application/json;charset=UTF-8")
    @Path(value = "/register")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String register(String registerParamsJson);
    @GET
    @Produces("application/json;charset=UTF-8")
    @Path(value = "/getUserInfo/{userId}")
    public String getUserInfo(@PathParam("userId") String userId);
    @POST
    @Produces("application/json;charset=UTF-8")
    @Path(value = "/settingUserInfo")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String settingUserInfo(String settingUserInfoJson);
}
